package com.wing.sys.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;


@Entity
@Table(name = "sys_operate_log")
public class  Operatelog {

  	@Id
  	@Column(name = "id")
  	private String id;
  	@Column(name = "module_id")
  	private String module_id;
  	@Column(name = "user_id")
  	private String user_id;
  	@Column(name = "log_time")
  	private Date log_time;
  	@Column(name = "work_ip")
  	private String work_ip;
  	@Column(name = "success")
  	private int success;
  	@Column(name = "description")
  	private String description;
  	@Column(name = "log_level")
  	private int log_level;
  
  

  	public void  setId(String id){
  		this.id = id;
  	}
	public String getId(){
  		return this. id; 
  	}
  	public void  setModule_id(String module_id){
  		this.module_id = module_id;
  	}
	public String getModule_id(){
  		return this. module_id; 
  	}
  	public void  setUser_id(String user_id){
  		this.user_id = user_id;
  	}
	public String getUser_id(){
  		return this. user_id; 
  	}
  	public void  setLog_time(Date log_time){
  		this.log_time = log_time;
  	}
	public Date getLog_time(){
  		return this. log_time; 
  	}
  	public void  setLog_timeView(long log_time){
  		if(log_time!=0){
  			this.log_time = new Date(log_time);
  		}
  	}
	public long getLog_timeView(){
		if(log_time==null){
			return 0;
		}
  		return this. log_time.getTime(); 
  	}
  	public void  setWork_ip(String work_ip){
  		this.work_ip = work_ip;
  	}
	public String getWork_ip(){
  		return this. work_ip; 
  	}
  	public void  setSuccess(int success){
  		this.success = success;
  	}
	public int getSuccess(){
  		return this. success; 
  	}
  	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public void  setLog_level(int log_level){
  		this.log_level = log_level;
  	}
	public int getLog_level(){
  		return this. log_level; 
  	}

}
